package jrain.fw.core.dao;

import java.sql.Connection;
import java.util.Map;

/**
 * <pre>
 * 作者：489088214@qq.com 
 * 描述：事务管理类
 * </pre>
 */
public interface TransactionManager {

	public void begin(String dataSourceName, Map<String, Object> data);

	public Connection getConnection(String dataSourceName, Map<String, Object> data);

	public void commit(String dataSourceName);

	public void rollback(String dataSourceName);

	public void closeConn(String dataSourceName, Connection connection);
}
